<template lang="">
<div>
v-text && v-html && 模块语法
<br/>
</div>
<div style="color: red" v-text="namm" />
<div style="color: red">
   {{name}}
</div>
<div v-html="name"></div>
<input @input="setNamm" />
<input :value="namm" />
</template>
<script>
export default{
    data(){
        return{
            namm:'<div style="color: blue">12312 </div>'
        }
    },
    methods: {
        setNamm(e) {
            console.log(e.traget.value)
            this.namm = e.traget.value
        }
    }
}
</script>
<style lang="">
</style>